<?php

	$couponID=intval($_GET['couponID']);
	
	if($couponID<0)
	{
		edp_redirect(edp_href_link(PAGENAME_PAGE_NOT_FOUND));
	}
	
	$couponDAO=GetGiftCouponDAO();
	$coupon=$couponDAO->GetCouponByID($couponID);
	
	if($coupon==false)
	{
		edp_redirect(edp_href_link(PAGENAME_PAGE_NOT_FOUND));
	}
	
	$histories=$couponDAO->GetHistoryByCouponID( $couponID, 20);

	$hotCoupons=$couponDAO->GetHotCoupon(5);
	$hotGifts=$couponDAO->GetHotGifts(7);
	$recenthistories=$couponDAO->GetRecentHistory(10);
	
	return 
	
?>